package com.cangxuan.backend.entity;
import lombok.Data;
@Data
public class Article {
    private Integer id;
    private Integer typeId;//类型id

    private String title;

    private String name;

    private String content;//文章内容
    private String  publishTime;//发布日期


    public Article(Integer id, Integer typeId, String title, String name, String content, String publishTime) {
        this.id = id;
        this.typeId = typeId;
        this.title = title;
        this.name = name;
        this.content = content;
        this.publishTime = publishTime;
    }

    public Article(Integer id, String title, String content, String publishTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.publishTime = publishTime;
    }

    public Article() {
    }
}


